import fs from 'fs';
import path from 'path';
import xlsx from 'xlsx';
import chalk from 'chalk';
import ora from 'ora';
const transformLanguage = (rootDirectory, languageConfig) => {};
const xlsxTransformLanguage = () => {
  // 获取当前目录
  let rootDirectory = process.cwd();
  let pathJson = path.join(rootDirectory, '/test.json');

  console.log(
    '%c [  ]-11',
    'font-size:13px; background:pink; color:#bf2c9f;',
    pathJson
  );
  // 获取json 文件
  let files = fs.readFileSync(path.join(rootDirectory, 'test.json'), 'utf-8');
  console.log(files);
  transformLanguage(rootDirectory, languageConfig);
};
xlsxTransformLanguage();
